package com.lwp.testjpush;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.send).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                NotificationsUtils.notifyNotification(MainActivity.this, "{\"customMsg\":{\"text\":\"8周年巨作 全部收款双频GPS，晓龙85，AI变焦双摄，红外人脸识别~\",\n" +
                        "\"title\":\"小米8 6月5日10:00官网同步 现货开售\",\n" +
                        "\"type\":2,\n" +
                        "\"value\":\"https://m.9ji.com/product/65471.html?from=app_push\",\n" +
                        "\"image\":\"https://img2.ch999img.com/pic/edt/product/20180209/20180209155738_2966.jpg\"}}");

            }
        });
    }



}
